/**
 * @author ingvar
 * @version 1.0
 * @since 2/10/13
 */
public class Test {


    public Test(){

        Token token = new Token("200 * ( 1300 + 700 )\n");
        Lexer lexer = new Lexer(token);

        while(lexer.hasNext()){
            System.out.println(lexer.nextToken().getTokenCode());
        }
    }

    public Test(String exp){

        Token token = new Token(exp);
        Lexer lexer = new Lexer(token);
        Parser myParser = new Parser(lexer);

        myParser.parse();
    }

    public Test(String string, int b){
        Lexer lex = new Lexer();
        Parser parser = new Parser(lex);

        parser.parse();
    }


    public static void main(String[] args) {
        new Test();
        System.out.println("End of test one, next test up\n");
        new Test("* 200 * ( 1300 + 700 ) + naem\n");

        System.out.println("End of test 2, next test up\n");
        new Test("200 * ( 1300 + 700 ) + naem\n", 4);
    }
}
